package de.unihannover.hci.portraitquiz.model;

import java.util.ArrayList;
import java.util.List;

public class Category {
	private int id;
	private String name;
	private String image;
	private List<Answer> answers;

	public Category() {
		answers = new ArrayList<Answer>();
	}

	public Category(int id, String name, String image) {
		this.id = id;
		this.name = name;
		this.image = image;
		answers = new ArrayList<Answer>();
	}

	public Category(String name, String image) {
		this.name = name;
		this.image = image;
		answers = new ArrayList<Answer>();
	}

	public Category(Category category) {
		this.id = category.getId();
		this.name = category.getName();
		this.image = category.getImage();
		this.answers = new ArrayList<Answer>(category.getAnswers());
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public List<Answer> getAnswers() {
		return answers;
	}

	public void addAnswer(Answer answer) {
		this.answers.add(answer);
	}
}